<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商品分类 - 甜呦商城</title>
    <link rel="stylesheet" href="css/category.css">
</head>
<body>
<header>
    <div class="container">
        <div class="logo">
            <h1>甜呦商城</h1>
        </div>
        <nav>
            <ul>
                <li><a href="index.html">首页</a></li>
                <li><a href="category.html" class="active">分类</a></li>
                <li><a href="cart.html">购物车</a></li>
                <li><a href="about.html">关于我们</a></li>
            </ul>
        </nav>
        <div class="user-actions">
            <a href="login.html" class="btn btn-login">登录</a>
            <a href="register.html" class="btn btn-register">注册</a>
        </div>
    </div>
</header>

<div class="container">
    <h2 class="page-title">商品分类</h2>

    <div class="category-container">
        <div class="category-list" id="categoryList">
            <!-- 分类列表将通过JavaScript动态添加 -->
        </div>

        <div class="product-list" id="productList">
            <!-- 商品列表将通过JavaScript动态添加 -->
            <p style="text-align: center; padding: 20px;">请选择一个分类查看商品</p>
        </div>
    </div>

    <div class="filter-container">
        <h3>筛选条件</h3>
        <div class="filter-price">
            <label for="minPrice">最低价:</label>
            <input type="number" id="minPrice" min="0" step="0.01">
            <label for="maxPrice">最高价:</label>
            <input type="number" id="maxPrice" min="0" step="0.01">
            <button id="applyFilter">应用筛选</button>
        </div>
        <div class="sort-options">
            <label for="sortSelect">排序方式:</label>
            <select id="sortSelect">
                <option value="default">默认排序</option>
                <option value="priceAsc">价格升序</option>
                <option value="priceDesc">价格降序</option>
                <option value="nameAsc">名称升序</option>
                <option value="nameDesc">名称降序</option>
            </select>
        </div>
    </div>
</div>

<footer>
    <div class="container">
        <p>&copy; 2025 甜呦商城 版权所有</p>
    </div>
</footer>

<script src="js/category.js"></script>
</body>
</html>